import Vue from 'vue'
import App from './App.vue'
//引入路由
import router from "@/routers"
//引入公共组件
import TypeNav from "@comp/TypeNav"
import Swiper from "@comp/Swiper"
import Pagenation from "@comp/Pagenation"
//引入Vuex
import store from "@/store"
//引入mock
import '@/Mock/Mock'

Vue.config.productionTip = false
Vue.component("TypeNav", TypeNav)
Vue.component("Swiper", Swiper)
Vue.component("Pagenation", Pagenation)

new Vue({
  render: h => h(App),
  router,
  store,
  created(){
    Vue.prototype.$bus = this
  }
}).$mount('#app')